package com.ziyun.pop.modules.storeFavouredPrice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.pop.modules.storeFavouredPrice.dao.StoreFavouredPriceDetailDao;
import com.ziyun.pop.modules.storeFavouredPrice.entity.StoreFavouredPriceDetailEntity;
import com.ziyun.pop.modules.storeFavouredPrice.service.StoreFavouredPriceDetailService;


@Service("storeFavouredPriceDetailService")
public class StoreFavouredPriceDetailServiceImpl extends ServiceImpl<StoreFavouredPriceDetailDao, StoreFavouredPriceDetailEntity> implements StoreFavouredPriceDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<StoreFavouredPriceDetailEntity> page = (Page<StoreFavouredPriceDetailEntity>) this.page(
                new Query<StoreFavouredPriceDetailEntity>(params).getPage(),
                new QueryWrapper<StoreFavouredPriceDetailEntity>()
        );

        return new PageUtils(page);
    }

    //查询折扣
    @Override
    public List<StoreFavouredPriceDetailEntity> getStoreFavouredPriceDetail(Map<String, Object> params) {
        return this.baseMapper.getStoreFavouredPriceDetail(params);
    }

}
